STEP 2: Now let's add some action to our scene!

All commands that should run when the function is called must go INSIDE the function.

  • Have the sprite Say "I should hurry to the castle!". Make sure it goes inside the function!

  • Have the sprite Move Forward 550 pixels so that it will move off the stage when we call this function.
  • These commands won't run for now, because the function hasn't been called.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)